#include"VertexDelclaration/GlVertexDeclaration.h"
namespace gname
{
		GlVertexDeclaration::~GlVertexDeclaration()
		{
			for(int i = 0; i <attributes.size(); ++i)
			{
				delete attributes[i];
				attributes[i] = 0;
			}
		}
		 
		void GlVertexDeclaration::AddAttribute(VertexAttributes va, int typeSiz,void *p,int numComp , int t )
		{
		   GlVertexAttribute* attrib = new GlVertexAttribute(va,typeSiz,p,numComp,t);
		   attributes.push_back(attrib);
		}

       /* void GlVertexDeclaration::ApplyAttributes() const
		{
			for(int i = 0; i <attributes.size(); ++i)
			{
				 
				if(attributes[i]!=0)
					attributes[i]->ApplyAttrib();
				
			}
		}*/
}